#ifndef _IOEVENTDEF_H_
#define _IOEVENTDEF_H_

#include <boost_def.hpp>

#define PORT_MAX 65535

typedef void(*async_fun_cb)(void *pData);
typedef void(*async_post_func)(void* data);
typedef	std::exception  stdexcep;

typedef struct io_data_s io_data_t;

struct io_data_s {
	void*				data;
	unsigned long		sid;
	unsigned long		rid;
	unsigned long		event;
	async_fun_cb		func;
	async_fun_cb		freefunc;
	async_fun_cb		errorfunc;
	unsigned char*		wptr;
	unsigned long		wlen;
	unsigned char*		rptr;
	unsigned long		rlen;

};

#endif 

